package com.gc.cn.p1_array;

public class  DemoSumCountArray {
    public static void main(String[] args) {
        int[] arrA = {8, 5, 7, 13, 16, 10, 11, 18, 30, 15, 17};
        int sum = 0;
        int count = 0;
        for (int i = 0; i < arrA.length; i++) {
            int i1 = arrA[i];
            if (i1 % 2 == 0) {
                count++;
                System.out.println("i1 = " + i1);
                sum += arrA[i];
            }
        }
        System.out.println("sum = " + sum);
        System.out.println("count = " + count);
    }
}
